package com.heiye.relation.biz.enums;

import com.heiye.framework.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: heiye
 * @date: 2025/04/15 上午11:12
 * @version: v1.0.0
 * @description: 响应异常码
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {
    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("QUIZ-RELATION-10000", "出错啦，后台小哥正在努力修复中..."),
    PARAM_NOT_VALID("QUIZ-RELATION-10001", "参数错误"),

    // ----------- 业务异常状态码 -----------
    CANT_FOLLOW_YOUR_SELF("QUIZ-RELATION-20001", "无法关注自己的问题哦~"),
    FOLLOW_QUIZ_NOT_EXISTED("QUIZ-RELATION-20002", "关注的问题不存在"),
    ALREADY_FOLLOWED("QUIZ-RELATION-20003", "您已经关注了该问题"),
    CANT_UNFOLLOW_YOUR_QUIZ_SELF("QUIZ-RELATION-20004", "无法取关自己的问题"),
    NOT_FOLLOWED("QUIZ-RELATION-20005", "你未关注问题，无法取关"),
    ;

    // 异常码
    private final String errorCode;
    // 错误信息
    private final String errorMessage;
}
